def run_cmd(cmd_str):
    from subprocess import run
    run(cmd_str, shell=True)


py_path = "C:\\Users\\21126\\.conda\\envs\\person\\python.exe "
file_path = "D:\\file\\学习\\神经网络\\neural_machine_translation_learn\\Final\\demo.py "
opt1 = "--n_epochs 30 --batch_size 128 --lr 0.0001 --generator_path ./models/generator1.pth --discriminator_path ./models/discriminator1.pth --pic_path ./images/1/"
opt2 = "--n_epochs 30 --batch_size 128 --lr 0.0001 --generator_path ./models/generator2.pth --discriminator_path ./models/discriminator2.pth --normal 1 --pic_path ./images/2/"
opt3 = "--n_epochs 30 --batch_size 128 --lr 0.00005 --generator_path ./models/generator3.pth --discriminator_path ./models/discriminator3.pth --pic_path ./images/3/"
opt4 = "--n_epochs 30 --batch_size 128 --lr 0.0003 --generator_path ./models/generator4.pth --discriminator_path ./models/discriminator4.pth --pic_path ./images/4/"
opt5 = "--n_epochs 30 --batch_size 64 --lr 0.0001 --generator_path ./models/generator5.pth --discriminator_path ./models/discriminator5.pth --pic_path ./images/5/"
opt6 = "--n_epochs 30 --batch_size 32 --lr 0.0001 --generator_path ./models/generator6.pth --discriminator_path ./models/discriminator6.pth --pic_path ./images/6/"

cmd1 = py_path + file_path + opt1
cmd2 = py_path + file_path + opt2
cmd3 = py_path + file_path + opt3
cmd4 = py_path + file_path + opt4
cmd5 = py_path + file_path + opt5
cmd6 = py_path + file_path + opt6

# run_cmd(cmd1)
# run_cmd(cmd2)
# run_cmd(cmd3)
run_cmd(cmd4)
# run_cmd(cmd5)
# run_cmd(cmd6)
